import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class ExtractStrings {
    public static void main(String[] args) {
        String filePath = args[0];
        try {
            BufferedReader reader = new BufferedReader(new FileReader(filePath));
            int c;
            boolean inString = false;
            int start = 0;
            while ((c = reader.read()) != -1) {
                if (c == '"' && !inString) {
                    inString = true;
                    start = reader.read();
                } else if (c == '"' && inString) {
                    inString = false;
                    int end = reader.read();
                    System.out.println(decodeString(filePath.substring(start, end)));
                }
            }
            reader.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    private static String decodeString(String str) {
        return str.replace("\\\"", "\"");
    }
}